
//ES代码
const UP = 5
const DOWN = 6
const Left = 7
const Right = 8



function walk(direction) {
    if (direction == UP) {
        console.log("向上走");
    }
    if (direction == DOWN) {
        console.log("向下走");
    }

}

walk(UP);

walk(DOWN)